package com.gaogzhen.threadPool;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "TestThreadPollExecutor01")
public class TestThreadPollExecutor01 {
    public static void main(String[] args) {
//        ExecutorService pool = Executors.newFixedThreadPool(2);
//
//        pool.execute(() -> log.debug("1"));
//        pool.execute(() -> log.debug("2"));
//        pool.execute(() -> log.debug("3"));
//        int COUNT_BITS = 32 - 3;
////        for (int i = -1; i <=3; i++) {
////            System.out.println(i << COUNT_BITS);
////        }
//        int capacity = (1 << COUNT_BITS) - 1;
//        System.out.println(-1 & capacity);
        System.out.println(Integer.toBinaryString(-1));
        System.out.println(Integer.toBinaryString(-1 << 1));
    }
}
